package com.huarun.module.repair.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author hqy
 * @创建时间   2018-10-26 15:33
 * @Description 报修点评
 */
public class RepairRated implements Serializable {
	private Integer id;

	private String orderNo;

	private Integer accountNo;

	private Integer rated;

	private String review;

	private Date repairDate;

	private Date createDate;

	private Date updateDate;

	private static final long serialVersionUID = 1L;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo == null ? null : orderNo.trim();
	}

	public Integer getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(Integer accountNo) {
		this.accountNo = accountNo;
	}

	public Integer getRated() {
		return rated;
	}

	public void setRated(Integer rated) {
		this.rated = rated;
	}

	public String getReview() {
		return review;
	}

	public void setReview(String review) {
		this.review = review == null ? null : review.trim();
	}

	public Date getRepairDate() {
		return repairDate;
	}

	public void setRepairDate(Date repairDate) {
		this.repairDate = repairDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		RepairRated other = (RepairRated) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getOrderNo() == null ? other.getOrderNo() == null
						: this.getOrderNo().equals(other.getOrderNo()))
				&& (this.getAccountNo() == null ? other.getAccountNo() == null
						: this.getAccountNo().equals(other.getAccountNo()))
				&& (this.getRated() == null ? other.getRated() == null : this.getRated().equals(other.getRated()))
				&& (this.getReview() == null ? other.getReview() == null : this.getReview().equals(other.getReview()))
				&& (this.getRepairDate() == null ? other.getRepairDate() == null
						: this.getRepairDate().equals(other.getRepairDate()))
				&& (this.getCreateDate() == null ? other.getCreateDate() == null
						: this.getCreateDate().equals(other.getCreateDate()))
				&& (this.getUpdateDate() == null ? other.getUpdateDate() == null
						: this.getUpdateDate().equals(other.getUpdateDate()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
		result = prime * result + ((getAccountNo() == null) ? 0 : getAccountNo().hashCode());
		result = prime * result + ((getRated() == null) ? 0 : getRated().hashCode());
		result = prime * result + ((getReview() == null) ? 0 : getReview().hashCode());
		result = prime * result + ((getRepairDate() == null) ? 0 : getRepairDate().hashCode());
		result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
		result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", orderNo=").append(orderNo);
		sb.append(", accountNo=").append(accountNo);
		sb.append(", rated=").append(rated);
		sb.append(", review=").append(review);
		sb.append(", repairDate=").append(repairDate);
		sb.append(", createDate=").append(createDate);
		sb.append(", updateDate=").append(updateDate);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}
